package com.dj.repository;

import com.dj.bean.EncounterHistoryBean;
import com.dj.bean.JcbgHistoryBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface JcbgHistoryRespository extends JpaRepository<JcbgHistoryBean,String>,JpaSpecificationExecutor<JcbgHistoryBean> {

    JcbgHistoryBean findByValidVersionIdAndVersion(String id, String version);

    List<JcbgHistoryBean> findByValidVersionId(String validVersionId);
}
